package cn.cs.service;


import cn.cs.common.Page;
import cn.cs.pojo.CsMenuRole;
import cn.cs.pojo.CsRole;

import java.util.List;
import java.util.Map;

public interface CsRoleService {

    public CsRole getCsRoleById(Long id) throws Exception;

    public List<CsRole> getCsRoleListByMap(Map<String, Object> param) throws Exception;

    public Integer getCsRoleCountByMap(Map<String, Object> param) throws Exception;

    public Integer addCsRole(CsRole csRole) throws Exception;

    public Integer modifyCsRole(CsRole csRole) throws Exception;

    public Integer deleteCsRoleById(String id) throws Exception;

    public Page<CsRole> queryCsRolePageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    public Integer insertRoleMenusBatch(List<CsMenuRole> list, String role_id);
}
